package me.keiwu.user.dao;

import me.keiwu.user.domain.UserTotalStep;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

/**
 * Created by kei on 14/12/2017.
 */
public interface UserTotalStepDao extends CrudRepository<UserTotalStep, Long> {

    @Query(value = "select * from user_total_step where user_id=?1", nativeQuery = true)
    UserTotalStep getUserTotalStep(Long userId);

}
